
package com.stchou.superbrowser.ui.animation;

import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.ScaleAnimation;

/**
 * 点击缩小并消失动画
 * 
 * @author roger
 */
public class ComposerButtonShrinkAnimationOut extends InOutAnimation
{

    public ComposerButtonShrinkAnimationOut(int i)
    {
        super(InOutAnimation.Direction.OUT, i, new View[0]);
    }

    @Override
    protected void addInAnimation(View[] aview)
    {

    }

    @Override
    protected void addOutAnimation(View[] aview)
    {
        addAnimation(new ScaleAnimation(1F, 0F, 1F, 0F, 1, 0.5F, 1, 0.5F));
        addAnimation(new AlphaAnimation(1F, 0F));
    }

}
